from dataclasses import dataclass, field
import json
from typing import List, Literal, Optional, TypedDict
from dataclasses_json import DataClassJsonMixin
# for port, desc, hwid in sorted(ports):
#         print(f"Port: {port}, Description: {desc}, HWID: {hwid}")

class SerialInfo(TypedDict):
    port: str # 串口号
    description: str # 串口描述
    hwid: str # 串口硬件ID
